package Announcements;

import java.awt.Color;
import java.util.ArrayList;

public class AnnouncementManager 
{
	public ArrayList<Announcement> announcementList = new ArrayList<Announcement>();
	public AnnouncementManager()
	{
		AddAnnouncement(new Announcement("Welcome to SpaceGame!",Color.GREEN));
	}
	
	public void AddAnnouncement(Announcement a)
	{
		if(announcementList.size() > 100)
		{
			announcementList.remove(0);
		}
		announcementList.add(a);
	}
}
